﻿using Loli.Library.WinIo;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PeopleSimulator
{
    [Serializable]
    public class Detail
    {

        public KeyCodes KeyCodes { get; set; }
        public int Deley { get; set; }
        public int Interval { get; set; }
        public KeyTypes KeyType { get; set; }
        public DateTime CreateTime { get; set; }

        public string DisplayString
        {
            get
            {
                if (Deley == 0)
                {
                    return (KeyType == KeyTypes.KeyUp ? "抬起" : "按下") + this.KeyCodes;
                }
                else
                {
                    return "延时" + Deley + "毫秒";
                }


            }
        }

    }

    public enum KeyTypes
    {
        None,
        KeyUp,
        KeyDown
    }
}
